package SimpleFactoryMode.version4;

/**
 * Created by ycq on 2018/10/10.
 */
public class Main {

    public static void main(String[] args) {
        Operation oper;
        oper=OperationFactory.createOperate("/");
        oper.set_numberA(3.5);
        oper.set_numberB(5);
        
        double result=oper.GetResult();
        System.out.println(result);
    }
}
